package com.atguigu.gmall.feign.order;

import com.atguigu.gmall.common.result.Result;
import com.atguigu.gmall.order.entity.OrderInfo;
import com.atguigu.gmall.order.ov.OrderConfirmRespVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient("service-order")
@RequestMapping("/api/inner/rpc/order")
public interface OrderFeignClient {

    @GetMapping("/confirmdata")
    public Result<OrderConfirmRespVo> orderConfirmData();

    @GetMapping("/info/{id}")
    public Result<OrderInfo> getOrderInfoById(@PathVariable Long id);
}
